public class Student extends Ponson{
    private String sex;

    public Student(){

    }

    public Student(String name, int age, String sex) {
        super(name, age);
        this.sex = sex;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex;
    }
    public void showInfo(){
        super.showInfo();
        System.out.println("我的性别是"+this.getSex());
}}
class TestStudent{
    public static void main(String[] args) {


    Student m=new Student("小黄",15,"女");
    m.showInfo();

}}
